package com.dhsc.controller.kbpzgl.pzbdlslr;

import com.dhsc.domain.ywzx.kbpzgl.PzbdlslrVo;
import com.dhsc.domain.ywzx.kbpzgl.WdpzscwjVo;
import com.dhsc.domain.yypt.LayuiTableVo;
import com.dhsc.domain.yypt.ResponseObject;
import com.dhsc.service.ywzj.pzbdlslr.IPzbdlslrService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author 凭证变动流水录入
 * @date 2024/8/26 10:25
 */
@Controller
@RequestMapping("/kbpzgl/pzbdlslr")
public class PzbdlslrController {

    @Autowired
    private IPzbdlslrService pzbdlslrService;

    /**
     * @Description:查询凭证变动流水信息
     * @return: com.dhsc.domain.yypt.LayuiTableVo
     * @Author: CDW
     * @Date: 2024/8/26 10:30
     * @param p:
     */
    @ResponseBody
    @RequestMapping(value="/queryWdpzrkinfo")
    public LayuiTableVo queryWdpzrkinfo(PzbdlslrVo p){
        return pzbdlslrService.queryWdpzrkinfo(p);
    }

    /**
     * @Description:保存流水单信息
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW
     * @Date: 2024/8/26 15:04
     * @param p:
     */
    @ResponseBody
    @RequestMapping(value="/saveLsd")
    public ResponseObject saveLsd(PzbdlslrVo p){
        return pzbdlslrService.saveLsd(p);
    }

    /**
     * @Description:查询网点凭证入库编辑信息
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW
     * @Date: 2024/8/26 16:22
     * @param p:
     */
    @ResponseBody
    @RequestMapping(value="/queryPzlsmx")
    public LayuiTableVo queryPzlsmx(PzbdlslrVo p){
        return pzbdlslrService.queryPzlsmx(p);
    }

    /**
     * @Description:网点凭证入库修改数量凭证编号和备注
     * @return: com.dhsc.domain.yypt.LayuiTableVo
     * @Author: CDW
     * @Date: 2024/8/27 10:50
     * @param p:
     */
    @ResponseBody
    @RequestMapping(value="/updateWdpzrkXx")
    public ResponseObject updateWdpzrkXx(PzbdlslrVo p){
        return pzbdlslrService.updateWdpzrkXx(p);
    }

    /**
     * @Description:提交网点凭证入库流水单
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW
     * @Date: 2024/8/27 14:16
     * @param p:
     */
    @ResponseBody
    @RequestMapping(value="/saveWdpzrkLsd")
    public ResponseObject saveWdpzrkLsd(PzbdlslrVo p){
        return pzbdlslrService.saveWdpzrkLsd(p);
    }

    /**
     * @Description:删除流水单
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW
     * @Date: 2024/8/28 14:19
     * @param p:
     */
    @ResponseBody
    @RequestMapping(value="/PzbdlsSclsd")
    public ResponseObject PzbdlsSclsd(PzbdlslrVo p){
        return pzbdlslrService.PzbdlsSclsd(p);
    }

    /**
     * @Description:退回流水单
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW
     * @Date: 2024/8/28 14:19
     * @param p:
     */
    @ResponseBody
    @RequestMapping(value="/PzbdlsThlsd")
    public ResponseObject PzbdlsThlsd(PzbdlslrVo p){
        return pzbdlslrService.PzbdlsThlsd(p);
    }

    /**
     * @Description:保存上传文件信息
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW
     * @Date: 2024/8/30 16:20
     * @param w:
     */
    @ResponseBody
    @RequestMapping(value="/WdpzScwj")
    public ResponseObject WdpzScwj(WdpzscwjVo w){
        return pzbdlslrService.WdpzScwj(w);
    }

    /**
     * @Description:作废提交
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW 
     * @Date: 2024/9/3 14:18
     * @param p: 
     */
    @ResponseBody
    @RequestMapping(value="/savezftj")
    public ResponseObject savezftj(PzbdlslrVo p){
        return pzbdlslrService.savezftj(p);
    }

    /**
     * @Description:已领提交
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW
     * @Date: 2024/9/3 14:18
     * @param p:
     */
    @ResponseBody
    @RequestMapping(value="/saveyltj")
    public ResponseObject saveyltj(PzbdlslrVo p){
        return pzbdlslrService.saveyltj(p);
    }

    /**
     * @Description:删除上传文件
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW
     * @Date: 2024/9/3 15:05
     * @param p:
     */
    @ResponseBody
    @RequestMapping(value="/deleteScwj")
    public ResponseObject deleteScwj(PzbdlslrVo p){
        return pzbdlslrService.deleteScwj(p);
    }

    /**
     * @Description:查询业务中心网点凭证营业部信息
     * @return: com.dhsc.domain.yypt.ResponseObject
     * @Author: CDW
     * @Date: 2024/9/6 14:02
     * @param p:
     */
    @ResponseBody
    @RequestMapping(value="/queryYwzxGsjgxx")
    public ResponseObject queryYwzxGsjgxx(PzbdlslrVo p){
        return pzbdlslrService.queryYwzxGsjgxx(p);
    }


}
